print(2420220065)
print("大数据1班温嘉怡")
def draw_tian():
    a = int(input("请输入田字格的宽度："))
    print("+", "---" * a, "+", "---" * a, "+")
    for j in range (a):
        print("|", "   " * a, "|", "   " * a, "|")
    print("+","---"*a,"+","---"*a,"+")
    for j in range (a):
        print("|", "   " * a, "|", "   " * a, "|")
    print("+","---"*a,"+","---"*a,"+")
draw_tian()
draw_tian()